﻿<!--***********************************************************************************

   AvalonDock

   Copyright (C) 2007-2013 Xceed Software Inc.

   This program is provided to you under the terms of the New BSD
   License (BSD) as published at http://avalondock.codeplex.com/license 

   For more features, controls, and fast professional support,
   pick up AvalonDock in Extended WPF Toolkit Plus at http://xceed.com/wpf_toolkit

   Stay informed: follow @datagrid on Twitter or Like facebook.com/datagrids

  **********************************************************************************-->

<ad:DockableContent x:Class="AvalonDock.DemoApp.SampleDockableContent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
             mc:Ignorable="d" d:DesignHeight="339" d:DesignWidth="482">
    <Grid>
        <Label Content="{Binding Title}" Height="26" HorizontalAlignment="Left" Margin="12,12,0,0" Name="label1" VerticalAlignment="Top" Width="112" ContentStringFormat="Title={0}" />
        <Label Content="{Binding State}" Height="29" HorizontalAlignment="Left" Margin="12,44,0,0" Name="label2" VerticalAlignment="Top" Width="300" ContentStringFormat="State={0}" />
        <Button Content="Auto Hide" Height="29" HorizontalAlignment="Left" Margin="12,79,0,0" VerticalAlignment="Top" Width="147" Command="ad:DockableContentCommands.ToggleAutoHide" />
        <Button Content="Floating Window" Height="29" HorizontalAlignment="Left" Margin="12,114,0,0" VerticalAlignment="Top" Width="147" Command="ad:DockableContentCommands.FloatingWindow" />
        <Button Content="Dockable Window" Height="29" HorizontalAlignment="Left" Margin="12,149,0,0" VerticalAlignment="Top" Width="147" Command="ad:DockableContentCommands.DockableFloatingWindow" />
        <Button Content="Document" Height="29" HorizontalAlignment="Left" Margin="12,184,0,0" VerticalAlignment="Top" Width="147" Command="ad:DockableContentCommands.ShowAsDocument" />
        <Button Command="ad:ManagedContentCommands.Show" Content="Dock" Height="29" HorizontalAlignment="Left" Margin="165,79,0,0" VerticalAlignment="Top" Width="147" />
        <TextBox Height="26" HorizontalAlignment="Left" Margin="165,118,0,0" Name="txtTestFocus" VerticalAlignment="Top" Width="147" />
        <Label Content="{Binding ContainerPane.ContainsActiveContent}" ContentStringFormat="ContainsActiveContent={0}" Height="26" HorizontalAlignment="Left" Margin="130,12,0,0" Name="label3" VerticalAlignment="Top" Width="182" />
        <Button Content="Test Click!" Height="29" HorizontalAlignment="Left" Margin="165,149,0,0" Name="button1" VerticalAlignment="Top" Width="147" Click="button1_Click" />
    </Grid>
</ad:DockableContent>
